﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CrimeListView.aspx.cs"
    Inherits="SisLegal.Maestros.CrimeListView" MasterPageFile="~/Site.Master" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <title>Tipos de Procesos</title>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>
                        Delitos
                    </h5>
                    <div class="ibox-tools">
                        <a class="btn btn-primary btn-xs" type="button" href="<%= Page.ResolveClientUrl("/Maestros/CrimeGenericNewForm.aspx") %>">
                            <i class="fa fa-plus"></i>Nuevo Delito Generico</a> <a class="btn btn-primary btn-xs"
                                type="button" href="<%= Page.ResolveClientUrl("/Maestros/CrimeSubGenericNewForm.aspx") %>">
                                <i class="fa fa-plus"></i>Nuevo Delito Sub-Generico</a> <a class="btn btn-primary btn-xs"
                                    type="button" href="<%= Page.ResolveClientUrl("/Maestros/CrimeSpecificNewForm.aspx") %>">
                                    <i class="fa fa-plus"></i>Nuevo Delito Especifico</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2 m-b-xs">
                            <div class="table-responsive">
                                <asp:Repeater ID="RstGenericTable" runat="server">
                                    <HeaderTemplate>
                                        <table class="table table-striped">
                                            <thead>
                                                <tr>
                                                    <th>
                                                        ID
                                                    </th>
                                                    <th>
                                                        Generico
                                                    </th>
                                                </tr>
                                            </thead>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%#Eval("ID") %>
                                            </td>
                                            <td>
                                                <a href="<%#Eval("ID") %>">
                                                    <%#Eval("Name") %></a>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </div>
                             <asp:Repeater ID="Repeater_Paginate_Generic" runat="server" OnItemCommand="Paginate_ItemCommand">
                        <HeaderTemplate>
                            <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
                                <ul class="pagination">
                                    <!--<li class="paginate_button previous disabled" aria-controls="DataTables_Table_0"
                                        tabindex="0" id="DataTables_Table_0_previous"><a href="#">Previous</a></li>-->
                        </HeaderTemplate>
                        <ItemTemplate>
                           <li class="paginate_button " aria-controls="DataTables_Table_<%#Eval("NumPage")%>" tabindex="<%#Eval("NumPage")%>">                           
                               <asp:LinkButton ID="LinkButton1" runat="server"  CommandName="Paginate_Generic" CommandArgument='<%#Eval("NumPage")%>' ><%#Eval("NumPage")%></asp:LinkButton>
                                </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            <!--<li class="paginate_button next" aria-controls="DataTables_Table_0" tabindex="0"
                                id="DataTables_Table_0_next"><a href="#">Next</a></li>-->
                            </ul></div>
                        </FooterTemplate>
                    </asp:Repeater>
                    
                        </div>
                        <div class="col-sm-4 m-b-xs">
                            <div class="table-responsive">
                                <asp:Repeater ID="RstSubGenericTable" runat="server">
                                    <HeaderTemplate>
                                        <table class="table table-striped">
                                            <thead>
                                                <tr>
                                                    <th>
                                                        ID
                                                    </th>
                                                    <th>
                                                        Generico
                                                    </th>
                                                    <th>
                                                        Sub-Generico
                                                    </th>
                                                </tr>
                                            </thead>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%#Eval("ID") %>
                                            </td>
                                            <td>
                                                <a href="<%#Eval("ID") %>">
                                                    <%#Eval("Name") %></a>
                                            </td>
                                            <td>
                                                <%#Eval("Generic")%>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </div>
                             <asp:Repeater ID="Repeater_Paginate_SubGeneric" runat="server" OnItemCommand="Paginate_ItemCommand">
                        <HeaderTemplate>
                            <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
                                <ul class="pagination">
                                    <!--<li class="paginate_button previous disabled" aria-controls="DataTables_Table_0"
                                        tabindex="0" id="DataTables_Table_0_previous"><a href="#">Previous</a></li>-->
                        </HeaderTemplate>
                        <ItemTemplate>
                           <li class="paginate_button " aria-controls="DataTables_Table_<%#Eval("NumPage")%>" tabindex="<%#Eval("NumPage")%>">                           
                               <asp:LinkButton ID="LinkButton1" runat="server"  CommandName="Paginate_SubGeneric" CommandArgument='<%#Eval("NumPage")%>' ><%#Eval("NumPage")%></asp:LinkButton>
                                </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            <!--<li class="paginate_button next" aria-controls="DataTables_Table_0" tabindex="0"
                                id="DataTables_Table_0_next"><a href="#">Next</a></li>-->
                            </ul></div>
                        </FooterTemplate>
                    </asp:Repeater>
                    
                        </div>
                        <div class="col-sm-6 m-b-xs">
                            <div class="table-responsive">
                                <asp:Repeater ID="RstSpecificTable" runat="server">
                                    <HeaderTemplate>
                                        <table class="table table-striped">
                                            <thead>
                                                <tr>
                                                    <th>
                                                        ID
                                                    </th>
                                                    <th>
                                                        Articulo
                                                    </th>
                                                    <th>
                                                        Generico
                                                    </th>
                                                    <th>
                                                        Sub-Generico
                                                    </th>
                                                    <th>
                                                        Especifico
                                                    </th>
                                                </tr>
                                            </thead>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%#Eval("ID") %>
                                            </td>
                                            <td>
                                                <%#Eval("Article") %>
                                            </td>
                                            <td>
                                                <%#Eval("NameGenerico")%>
                                            </td>
                                            <td>
                                                <%#Eval("NameSubGenerico")%>
                                            </td>
                                            <td>
                                                <a href="<%#Eval("ID") %>">
                                                    <%#Eval("Name") %></a>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </div>
                             <asp:Repeater ID="Repeater_Paginate_Specific" runat="server" OnItemCommand="Paginate_ItemCommand">
                        <HeaderTemplate>
                            <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
                                <ul class="pagination">
                                    <!--<li class="paginate_button previous disabled" aria-controls="DataTables_Table_0"
                                        tabindex="0" id="DataTables_Table_0_previous"><a href="#">Previous</a></li>-->
                        </HeaderTemplate>
                        <ItemTemplate>
                           <li class="paginate_button " aria-controls="DataTables_Table_<%#Eval("NumPage")%>" tabindex="<%#Eval("NumPage")%>">                           
                               <asp:LinkButton ID="LinkButton1" runat="server"  CommandName="Paginate_Specific" CommandArgument='<%#Eval("NumPage")%>' ><%#Eval("NumPage")%></asp:LinkButton>
                                </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            <!--<li class="paginate_button next" aria-controls="DataTables_Table_0" tabindex="0"
                                id="DataTables_Table_0_next"><a href="#">Next</a></li>-->
                            </ul></div>
                        </FooterTemplate>
                    </asp:Repeater>
                    
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
